package pres.lnk.learn.designpattern.r_mediator;

/**
 * 抽象中介者
 * @Author lnk
 * @Date 2018/6/4
 */
public abstract class AbstractMediator {
    protected BusinessA businessA;
    protected BusinessB businessB;

    public AbstractMediator(BusinessA businessA, BusinessB businessB) {
        this.businessA = businessA;
        this.businessB = businessB;
    }

    abstract void runA();
    abstract void runB();
}
